//
//  UITabBar+Theme.m
//  夜间模式
//
//  Created by Burn on 2018/10/22.
//  Copyright © 2018年 buren. All rights reserved.
//

#import "UITabBar+Theme.h"
#import "ThemeManager.h"
#import "UIView+Theme.h"
@implementation UITabBar (Theme)


- (void)changeColor{
    switch ([self.type integerValue]) {
        case ThemeTypeNormal:
            [self setBarTintColor:[ThemeManager shareInstance].themeNormalColor];
            break;
        case ThemeTypeBlack:
            [self setBarTintColor:[ThemeManager shareInstance].themeBlackColor];
            break;
        case ThemeTypeRed:
            [self setBarTintColor:[ThemeManager shareInstance].themeRedColor];
            break;
        case ThemeTypeClear:
            [self setBarTintColor:[ThemeManager shareInstance].themeClearColor];
            break;
            
        default:
            break;
    }

}

@end
